import request from '@/utils/request'

const approve = {
  // 待我审批记录
  myApproveList(params) {
    return request.get('/wcx/approve/myApproveList', {
      params
    })
  },
  // 我已审批记录
  myApprovedList(params) {
    return request.get('/wcx/approve/myApprovedList', {
      params
    })
  },
  // 审批操作
  opApprove(data) {
    return request.post('/wcx/approve/approve', data);
  },
  // 根据业务id获取该业务所有审批记录
  getByBusinessId(businessId) {
    return request.get(`/wcx/approve/getByBusinessId/${businessId}`);
  },
  // 待初筛成果
  approvedInnovations(params) {
    return request.get(`/wcx/innovations/xsReviewList`, {params});
  },
  reviewApprove(data){
    return request.post(`/wcx/approve/reviewApprove`,data);
  },
  getApproverReviewByUserId(id) {
    return request.get(`/wcx/innovations/xsReview/getByUserId/${id}`)
  },
  addReviewProject(data){
    return request.post('/wcx/approve/addReviewProject', data)
  },
  // 添加形式审查人员
  addApprover(data) {
    return request.post('/system/user/registerWcxReview', data)
  },
}

export default approve;
